package com.nwpu.am.service.impl;

import com.nwpu.am.mapper.PermissionMapper;
import com.nwpu.am.pojo.entity.Permission;
import com.nwpu.am.service.PermissionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * PermissionServiceImpl
 *
 * @author Roy
 * @version 1.0
 * {@code @date} 2024/6/5
 */
@Service
@Slf4j
public class PermissionServiceImpl implements PermissionService {
    @Resource
    private PermissionMapper permissionMapper;
    @Override
    public List<Permission> findByUsername(String username) {
        return permissionMapper.findByUsername(username);
    }
}
